import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-20
 * Time:8:27
 */
public class Student implements Comparable<Student>{
    private String name;
    private int grade;

    public Student(String name, int grade) {
        this.name = name;
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", grade=" + grade +
                '}';
    }

//    @Override
//    public int compareTo(Student o) {
//        if(this.grade > o.grade) {
//            return 1;
//        } else if (this.grade == o.grade) {
//            return 0;
//        } else {
//            return -1;
//        }
//    }

    @Override
    public int compareTo(Student o) {
        return 0;
    }
}
